package open.template.work.gateway.service;

import open.template.work.commons.constants.CloudServerDirectory;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = CloudServerDirectory.UDM_SERVER)
public interface AuthorizationService {

    /**
     * 调用获取用户密钥
     * @param appKey
     * @return
     */
    @RequestMapping("/user/key/{appKey}")
    String getUserKey(@PathVariable("appKey") String appKey);

}
